﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
namespace KLF.Lib.Browser.DOM.CSS
{
    #region Using Statements

    using KLF.Lib.Browser.DOM;

    #endregion

    /// <summary>
    /// The Counter interface is used to represent any counter or counters 
    /// function value. This interface reflects the values in the 
    /// underlying style property.
    /// </summary>
    public class Counter
    {
        #region DOM Level 2 CSS Implementation

        /// <summary>
        /// This attribute is used for the identifier of the counter.
        /// </summary>
        public string identifier
        {
            get
            {
                return _identifier != null ? _identifier.Value : "";
            }
            set
            {
                _identifier = new StringLookup(value);
            }
        }
        internal StringLookup _identifier;

        /// <summary>
        /// This attribute is used for the style of the list.
        /// </summary>
        public string listStyle
        {
            get
            {
                return _listStyle != null ? _listStyle.Value : "";
            }
            set
            {
                _listStyle = new StringLookup(value);
            }
        }
        internal StringLookup _listStyle;

        /// <summary>
        /// This attribute is used for the separator of the nested counters.
        /// </summary>
        public string separator
        {
            get
            {
                return _separator != null ? _separator.Value : "";
            }
            set
            {
                _separator = new StringLookup(value);
            }
        }
        internal StringLookup _separator;

        #endregion
    }
}
